package pers.vinsonws.jianghu.serverspring.service;

import pers.vinsonws.jianghu.serverspring.entity.ChatRooms;
import pers.vinsonws.jianghu.util.User;

/**
 * @auther vinsonws
 * @date 2018/11/5 17:09
 * users表接口类
 */
public interface UserService {
    User loginByUidAndPassword(String uid, String password);
    String registerByUserNameAndPassword(String userName, String password) throws Exception;
    boolean updateUserInformation(User user, String userName, String oldPassword, String newPassword);
    User getUserById(int id);
    void addChatRoomByUserId(int userId, ChatRooms chatRooms);
}
